/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.funmodelling;

import java.util.ArrayList;

/**
 *
 * @author Mustafa Tosun
 */
public class Slice {

    private ArrayList<Vertex> _vertices;
    private Vertex _midPoint;
    private int _sliceId;
    private int _size;
    private int _GLID;

    public Slice() {
        _vertices = null;
        _midPoint = null;
        _sliceId = Integer.MIN_VALUE;
        _size =0;
    }

    public Slice(ArrayList<Vertex> vList, Vertex midpoint, int sliceId) {
        _vertices = vList;
        _midPoint = midpoint;
        _sliceId = sliceId;
        if(vList != null)
            _size = vList.size();
        else
            _size=0;
    }

    public ArrayList<Vertex> getVertices() {
        return _vertices;
    }

    public Vertex getMidPoint() {
        return _midPoint;
    }

    public int getSliceId() {
        return _sliceId;
    }

    public int size(){
        return _size;
    }

    public void setGLId(int id)
    {
        _GLID = id;
    }

    public int getGLId()
    {
        return _GLID;
    }
}
